import service from '@/utils/request'


export const roomApi = (id: number) => {
	return service.get('/new/new/room/' + id)
}

export const roomListApi = () => {
	return service.get('/new/new/room/allList')
}

export const roomSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/new/new/room', dataForm)
	} else {
		return service.post('/new/new/room', dataForm)
	}
}

export const unitRoomListApi = (data: any) => {
	return service.post('/new/new/room/unitRoom', data)
}


